package com.kaoshi.servefw.controller;


import com.kaoshi.common.config.Result;
import com.kaoshi.servefw.service.PacksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-10-29
 */
@RestController
@RequestMapping("/b/packs")

public class PacksController {
    @Autowired
    private PacksService packsService;
    @PostMapping("/list")
    public Result getPacks(){
        return Result.ok(packsService.list());
    }
}
